﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;

namespace CKSDev_SUGUK1
{
    /// <summary>
    /// A class to demo fail sandbox compile
    /// </summary>
    class FailSandboxCompile
    {
        /// <summary>
        /// Fails the sandbox compilation.
        /// </summary>
        public void FailSandboxCompilation()
        {
            SPSite site = new SPSite("http://sugukdemo");

            SPUtility.SendEmail(site.RootWeb, true, true, "wes@demo.com", "subject here", "my body");
            string dispName;
            string email;
            SPUtility.GetNTFullNameandEmailfromLogin(SPContext.Current.Web, "spsql\administrator", out dispName, out email);
        }
    }
}
